<?php
/* @var $this NewModelsController */
/* @var $model NewModels */
/* @var $form TbActiveForm */
?>

<div class="form">

    <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'new-models-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation' => true,
		'clientOptions' => array(
			'validateOnSubmit' => true,
		),
)); ?>


    <?php echo $form->errorSummary($model); ?>

            <?php echo $form->textFieldControlGroup($model,'cat_id',array('span'=>5)); ?>

            <?php echo $form->textFieldControlGroup($model,'cat_title',array('span'=>5,'maxlength'=>255)); ?>

            <?php echo $form->textFieldControlGroup($model,'brand_id',array('span'=>5)); ?>

            <?php echo $form->textFieldControlGroup($model,'brand_title',array('span'=>5,'maxlength'=>255)); ?>

            <?php echo $form->textFieldControlGroup($model,'model_id',array('span'=>5)); ?>

            <?php echo $form->textFieldControlGroup($model,'model_title',array('span'=>5,'maxlength'=>255)); ?>

            <?php echo $form->textFieldControlGroup($model,'model_image',array('span'=>5,'maxlength'=>255)); ?>

            <?php echo $form->textFieldControlGroup($model,'model_rating',array('span'=>5,'maxlength'=>255)); ?>

            <?php echo $form->textFieldControlGroup($model,'model_price',array('span'=>5)); ?>

            <?php echo $form->textFieldControlGroup($model,'model_popular',array('span'=>5,'maxlength'=>255)); ?>

            <?php echo $form->textFieldControlGroup($model,'model_yandex_id',array('span'=>5)); ?>

            <?php echo $form->textFieldControlGroup($model,'model_new_title',array('span'=>5,'maxlength'=>255)); ?>

            <?php echo $form->textFieldControlGroup($model,'is_active',array('span'=>5)); ?>

            <?php echo $form->textFieldControlGroup($model,'is_parent',array('span'=>5,'maxlength'=>255)); ?>

            <?php echo $form->textFieldControlGroup($model,'model_test_title',array('span'=>5,'maxlength'=>255)); ?>

            <?php echo $form->textFieldControlGroup($model,'model_status',array('span'=>5)); ?>

        <div class="form-actions">
        <?php echo TbHtml::submitButton($model->isNewRecord ? 'Create' : 'Save',array(
		    'color'=>TbHtml::BUTTON_COLOR_PRIMARY,
		    'size'=>TbHtml::BUTTON_SIZE_LARGE,
		)); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->